package com.chixing.day16_io.aop_proxy;

public class ProductSerxiceImpl implements ProductService{
    @Override
    public void save() {
        System.out.println("添加商品业务代码"); //核心业务
        new LogUtil().addLog(); //非核心业务(服务型业务)
    }

    @Override
    public void update() {
        System.out.println("更新商品业务代码");
        new LogUtil().addLog();

    }

    @Override
    public void delete() {
        System.out.println("删除商品业务代码");
        new LogUtil().addLog();

    }

    @Override
    public void getById() {
        System.out.println("获得id商品业务代码");
        new LogUtil().addLog();

    }
}
